STEP 11: Let's set up the second if-statement! Remember, you'll find in the LOGIC tab.

  • Go to LOGIC and . Drag out another if and drop it at the bottom of your program.
  • Change the test variable from choice to choice2 and the test value from "yes" to "city".
  • Click GRAPHICS, then and drop City inside the new if-statement. Make sure it is indented with a yellow block ····.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)